/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DirGeralView.java
 *
 * Created on 03/06/2013, 21:50:33
 */
package boundary;

import javax.swing.JMenu;
import javax.swing.JMenuItem;

/**
 *
 * @author jakson
 */
public class DirGeralView extends javax.swing.JFrame {

    /** Creates new form DirGeralView */
    public DirGeralView() {
        initComponents();
    }

    public JMenuItem getItmAbrirConta() {
        return itmAbrirConta;
    }

    public JMenuItem getItmManterConta() {
        return itmManterConta;
    }

    public JMenuItem getItmconsultaGerente() {
        return itmconsultaGerente;
    }

    public JMenuItem getItmConsultaDirRegional() {
        return itmConsultaDirRegional;
    }

    public JMenuItem getItmConsultaCliente() {
        return itmConsultaCliente;
    }

    public JMenuItem getItmDirRegional() {
        return itmDirRegional;
    }
    
    

    public JMenuItem getItAgencia() {
        return itAgencia;
    }

    public JMenuItem getItmGerente() {
        return itmGerente;
    }

    public JMenuItem getItConsultaAgencia() {
        return itConsultaAgencia;
    }

   

    public JMenuItem getImSair() {
        return imSair;
    }

   public JMenuItem getItmCliente() {
        return itmCliente;
    }
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        itAgencia = new javax.swing.JMenuItem();
        itmGerente = new javax.swing.JMenuItem();
        itmDirRegional = new javax.swing.JMenuItem();
        itmCliente = new javax.swing.JMenuItem();
        consulta = new javax.swing.JMenu();
        itConsultaAgencia = new javax.swing.JMenuItem();
        itmconsultaGerente = new javax.swing.JMenuItem();
        itmConsultaDirRegional = new javax.swing.JMenuItem();
        itmConsultaCliente = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        itmAbrirConta = new javax.swing.JMenuItem();
        itmManterConta = new javax.swing.JMenuItem();
        sairregional = new javax.swing.JMenu();
        imSair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Menu Diretor Regional");

        jMenu1.setText("Cadastrar");

        itAgencia.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        itAgencia.setText("Agência");
        itAgencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itAgenciaActionPerformed(evt);
            }
        });
        jMenu1.add(itAgencia);

        itmGerente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));
        itmGerente.setText("Gerente");
        jMenu1.add(itmGerente);

        itmDirRegional.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        itmDirRegional.setText("Diretor Regional");
        jMenu1.add(itmDirRegional);

        itmCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        itmCliente.setText("Cliente");
        jMenu1.add(itmCliente);

        jMenuBar1.add(jMenu1);

        consulta.setText("Consultar");

        itConsultaAgencia.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, 0));
        itConsultaAgencia.setText("Agências");
        itConsultaAgencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itConsultaAgenciaActionPerformed(evt);
            }
        });
        consulta.add(itConsultaAgencia);

        itmconsultaGerente.setText("Gerentes");
        consulta.add(itmconsultaGerente);

        itmConsultaDirRegional.setText("Diretores Regionais");
        consulta.add(itmConsultaDirRegional);

        itmConsultaCliente.setText("Cliente");
        consulta.add(itmConsultaCliente);

        jMenuBar1.add(consulta);

        jMenu2.setText("Conta");

        itmAbrirConta.setText("Abrir Conta");
        jMenu2.add(itmAbrirConta);

        itmManterConta.setText("Manter Conta");
        jMenu2.add(itmManterConta);

        jMenuBar1.add(jMenu2);

        sairregional.setText("Sair");

        imSair.setText("sair");
        imSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                imSairActionPerformed(evt);
            }
        });
        sairregional.add(imSair);

        jMenuBar1.add(sairregional);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 530, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 329, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    

private void imSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_imSairActionPerformed
// TODO add your handling code here:
    //this.dispose();
   
}//GEN-LAST:event_imSairActionPerformed

private void itAgenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itAgenciaActionPerformed

    //AddAgenciaPresenter ag = new AddAgenciaPresenter();
    //new DirRegionalPresenter();
    
    
    
}//GEN-LAST:event_itAgenciaActionPerformed

    private void itConsultaAgenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itConsultaAgenciaActionPerformed
        // TODO add your handling code here:
   
    }//GEN-LAST:event_itConsultaAgenciaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(DirGeralView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(DirGeralView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(DirGeralView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(DirGeralView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new DirGeralView().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu consulta;
    private javax.swing.JMenuItem imSair;
    private javax.swing.JMenuItem itAgencia;
    private javax.swing.JMenuItem itConsultaAgencia;
    private javax.swing.JMenuItem itmAbrirConta;
    private javax.swing.JMenuItem itmCliente;
    private javax.swing.JMenuItem itmConsultaCliente;
    private javax.swing.JMenuItem itmConsultaDirRegional;
    private javax.swing.JMenuItem itmDirRegional;
    private javax.swing.JMenuItem itmGerente;
    private javax.swing.JMenuItem itmManterConta;
    private javax.swing.JMenuItem itmconsultaGerente;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu sairregional;
    // End of variables declaration//GEN-END:variables
}
